     using SmartSoft.DAL;
 using System.Web.Services;
    using System;
    using System.Data;
    using System.Data.SqlClient;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class WSPriceCalculateDataAccess : System.Web.Services.WebService
{
    private PriceCalculateDataAccess objDataAccess = new PriceCalculateDataAccess();
    public WSPriceCalculateDataAccess()
{
}


    [WebMethod]
    public void Calculate0(string ps_Subsidiary, object pd_Ngay_Ct1, object pd_Ngay_Ct2, object ps_Ma_Kho, object ps_Ma_Vt)
{
object[] arr = Validator.Validate(pd_Ngay_Ct1, pd_Ngay_Ct2, ps_Ma_Kho, ps_Ma_Vt);
objDataAccess.Calculate0(ps_Subsidiary, arr[0], arr[1], arr[2], arr[3]);
}

    [WebMethod]
    public void Calculate1(string ps_Subsidiary, object pd_Ngay_Ct1, object pd_Ngay_Ct2, object ps_Ma_Kho, object ps_Ma_Vt)
{
object[] arr = Validator.Validate(pd_Ngay_Ct1, pd_Ngay_Ct2, ps_Ma_Kho, ps_Ma_Vt);
objDataAccess.Calculate1(ps_Subsidiary, arr[0], arr[1], arr[2], arr[3]);
}
    [WebMethod]
    public void Calculate2(string ps_Subsidiary, object pd_Ngay_Ct1, object pd_Ngay_Ct2, object ps_Ma_Kho, object ps_Ma_Vt)
{
object[] arr = Validator.Validate(pd_Ngay_Ct1, pd_Ngay_Ct2, ps_Ma_Kho, ps_Ma_Vt);
objDataAccess.Calculate2(ps_Subsidiary, arr[0], arr[1], arr[2], arr[3]);
}
}
